Align CPS health coverage anchors with at-interview rule inputs#630
Merged
Align CPS health coverage anchors with at-interview rule inputs#630
Conversation
df427b9 to
7c2b4ba
Compare
juaristi22
requested changes
Apr 9, 2026
Collaborator
There was a problem hiding this comment.
One blocker before this is safe to merge:
publish_local_area.pyneeds the same per-period guard already used inUnifiedMatrixBuilder; otherwise valid multi-period datasets can raiseKeyErrorwhen the reported anchor variable exists overall but not for the requested period.
What looks good: separating subsidized Marketplace reports from unsubsidized coverage for the ACA anchor looks directionally right, and sharing the reported-anchor logic across CPS construction, local-area publishing, and unified calibration is a sensible shape for the change. The new unit/integration coverage around the coverage-flag mappings and reported-anchor behavior is also useful. I did not spot any other blockers beyond the comment below. I do have one non-blocking verification note on census_cps.py.
d5d41c1 to
9bceba8
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #629
Summary
NOW_*current-coverage flags as reported health coverage fields and emit the correspondinghas_*_health_coverage_at_interviewrule inputs needed bypolicyengine-usreported_has_subsidized_marketplace_health_coverage_at_interview, while anchoring Medicaid takeup tohas_medicaid_health_coverage_at_interview, in CPS construction, local-area publishing, and unified calibrationTesting
uv run pytest tests/unit/test_stochastic_variables.py tests/unit/calibration/test_unified_calibration.py tests/integration/test_cps.py::test_add_personal_variables_maps_current_health_coverage_flags -quv run make format